# # 验证十进制的阿拉伯数字
# print('123'.isdigit())
# print('一二三'.isdigit())
# print('0b1010'.isdigit())
#
# # 验证是否是数字
# print('123'.isnumeric())
# print('一二三'.isnumeric())
# print('壹贰叁'.isnumeric())
# print('0b1010'.isnumeric())
# print('III'.isnumeric())

# # 验证是否字母
# print('hello你好'.isalpha())
# print('hello你好123'.isalpha())
# print('hello你好一二三'.isalpha())
# print('hello你好III'.isalpha())
# print('hello你好壹贰叁'.isalpha())

# 判断是否字母或数字
print('hello你好'.isalnum())
print('hello你好123'.isalnum())
print('hello你好一二三'.isalnum())
print('hello你好壹贰叁'.isalnum())

# 判断是否大小写
print('HelloWorld'.islower())
print('helloworld'.islower())
print('HELLO'.isupper())
print('HELLO你好'.isupper())

# 判断首字母大写
print('Hello'.istitle())
print('Hello World'.istitle())

# 判断是否空白字符
print('\t'.isspace())
print(' '.isspace())
print('\n'.isspace())
